<template>
  <div class="content content13">
    <div class="innertitle">
      1.诊断床定位精度：<span class="innertitle-sub">负重70kg左右。</span>
      <span class="innertitle-sub fr" style="font-family: normal"
        >误差 = |起始点-终止点|-指令移动距离</span
      >
    </div>
    <table border="1" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td>床的移动方式</td>
        <td>指令移动距离,mm</td>
        <td>起始点,mm</td>
        <td>终止点,mm</td>
        <td>检测结果,mm</td>
      </tr>
      <tr>
        <td>进床（定位）</td>
        <td>300</td>
        <td>
          <el-input v-model="form.positioningAccuracy.forwardBedStart" />
        </td>
        <td>
          <el-input v-model="form.positioningAccuracy.forwardBedEnd" />
        </td>
        <td class="result">
          <el-input
            v-model="form.positioningAccuracy.forwardBedResult"
            disabled
          />
        </td>
      </tr>
      <tr>
        <td>退床（归位）</td>
        <td>300</td>
        <td>
          <el-input v-model="form.positioningAccuracy.backBedStart" />
        </td>
        <td>
          <el-input v-model="form.positioningAccuracy.backBedEnd" />
        </td>
        <td class="result">
          <el-input v-model="form.positioningAccuracy.backBedResult" disabled />
        </td>
      </tr>
    </table>

    <div id="table2">
      <div class="innertitle">
        2.定位光精度(<el-checkbox v-model="form.positioningLightAccuracy.notHaveCondition">不满足检测条件</el-checkbox>)：
        <!-- <span class="innertitle-sub">
          (
          <el-radio-group
            v-model="form.positioningLightAccuracy.method"
            class="split-radio"
          >
            <el-radio :label="1">模体检测法</el-radio>
            <span class="split">、</span>
            <el-radio :label="2">胶片检测法</el-radio>
          </el-radio-group>
          )
        </span> -->
        <span class="innertitle-sub">
          检测条件：
          <el-input
            v-model="form.positioningLightAccuracy.tubeVoltage"
            class="input-line"
            @change="(value) => {
              if (!form.inclinationAccuracy.testState) {
                form.inclinationAccuracy.tubeVoltage = value // 3
              }
              form.thicknessDeviation.tubeVoltage = value // 4
              form.ctdiw.tubeVoltage1 = value // 5
              form.ctWaterNoiseUniformity.tubeVoltage = value // 6 7 8
              form.contrastResolutionHigh.tubeVoltage = value // 9
              // form.contrastResolutionHigh.tubeVoltage2 = value // 9
              form.contrastDetectabilityLow.tubeVoltage = value // 10
              if (!form.ctValueLinear.testState) {
                form.ctValueLinear.tubeVoltage = value // 11
              }
            }"
          />
          kV
          <el-input
            v-model="form.positioningLightAccuracy.tubeCurrent"
            class="input-line"
            @change="(value) => {
              if (!form.inclinationAccuracy.testState) {
                form.inclinationAccuracy.tubeCurrent = value // 3
              }
              form.thicknessDeviation.tubeCurrent = value // 4
              form.ctdiw.tubeCurrent1 = value // 5
              form.ctWaterNoiseUniformity.tubeCurrent = value // 6 7 8
              form.contrastResolutionHigh.tubeCurrent = value // 9
              // form.contrastResolutionHigh.tubeCurrent2 = value // 9
              form.contrastDetectabilityLow.tubeCurrent = value // 10
              if (!form.ctValueLinear.testState) {
                form.ctValueLinear.tubeCurrent = value // 11
              }
            }"
          />
          <el-radio-group
            v-model="form.positioningLightAccuracy.tubeCurrentUnit"
            class="split-radio"
            @input="(value) => {
              if (!form.inclinationAccuracy.testState) {
                form.inclinationAccuracy.tubeCurrentUnit = value // 3
              }
              form.thicknessDeviation.tubeCurrentUnit = value // 4
              form.ctdiw.tubeCurrentUnit1 = value // 5
              form.ctWaterNoiseUniformity.tubeCurrentUnit = value // 6 7 8
              form.contrastResolutionHigh.tubeCurrentUnit = value // 9
              form.contrastDetectabilityLow.tubeCurrentUnit = value // 10
              if (!form.ctValueLinear.testState) {
                form.ctValueLinear.tubeCurrentUnit = value // 11
              }
            }"
          >
            <el-radio :label="0">mA</el-radio> <span class="split">/</span>
            <el-radio :label="1">mAs</el-radio>
          </el-radio-group>
          曝光时间(s)：
          <el-input
            v-model="form.positioningLightAccuracy.exposureTime"
            class="input-line"
            @change="(value) => {
              if (!form.inclinationAccuracy.testState) {
                form.inclinationAccuracy.exposureTime = value // 3
              }
              form.thicknessDeviation.exposureTime = value // 4
              form.ctdiw.ts1 = value // 5
              form.ctWaterNoiseUniformity.exposureTime = value // 6 7 8
              form.contrastResolutionHigh.exposureTime = value // 9
              // form.contrastResolutionHigh.exposureTime2 = value // 9
              form.contrastDetectabilityLow.exposureTime = value // 10
              if (!form.ctValueLinear.testState) {
                form.ctValueLinear.exposureTime = value // 11
              }
            }"
          />
        </span>
        <div class="innertitle-sub fr" style="font-family: normal">
          <span style="padding-right: 40px"
            ><i>$CT_{hm}=\frac {CT_{max}+CT_{background}}{2}$</i></span
          >
          <i>$S=0.42X$</i>
        </div>
      </div>

      <div>
        <table border="1" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td>层厚,mm</td>
            <td>最小窗宽</td>
            <td><i>$CT_{background}$</i>,HU</td>
            <td><i>$CT_{max}$</i>,HU</td>
            <td><i>$CT_{hm}$</i>,HU</td>
            <td>差值X,mm</td>
            <td>定位光偏差S,mm</td>
          </tr>
          <tr>
            <td class="multipleInput">
              <el-input
                v-model="form.positioningLightAccuracy.thickness"
                @change="(value) => {
                  // form.thicknessDeviation.thickness_1 = value // 4
                  // form.thicknessDeviation.thickness_2 = value // 4
                  // form.thicknessDeviation.thickness_3 = value // 4
                  form.ctdiw.nt1 = value // 5
                  form.ctWaterNoiseUniformity.thickness = value // 6 7 8
                  form.contrastResolutionHigh.thickness = value // 9
                  // form.contrastResolutionHigh.thickness2 = value // 9
                  // form.contrastDetectabilityLow.thickness = value // 10
                  if (!form.ctValueLinear.testState) {
                    // form.ctValueLinear.thickness = value // 11
                  }
                }"
              />
            </td>
            <td class="multipleInput">
              <el-input
                v-model="form.positioningLightAccuracy.minWindowWidth"
                @change="(value) => {
                  form.thicknessDeviation.minWindowWidth_1 = value // 4
                  form.thicknessDeviation.minWindowWidth_2 = value // 4
                  form.thicknessDeviation.minWindowWidth_3 = value // 4
                }"
              />
            </td>
            <td class="multipleInput">
              <el-input
                v-model="form.positioningLightAccuracy.ctBackgroundHu"
                @change="(value) => {
                  form.thicknessDeviation.ctBackgroundHu_1 = value // 4
                  form.thicknessDeviation.ctBackgroundHu_2 = value // 4
                  form.thicknessDeviation.ctBackgroundHu_3 = value // 4
                }"
              />
            </td>
            <td class="multipleInput">
              <el-input
                v-model="form.positioningLightAccuracy.ctMaxHu"
                @change="(value) => {
                  form.thicknessDeviation.ctMaxHu_1 = value // 4
                  form.thicknessDeviation.ctMaxHu_2 = value // 4
                  form.thicknessDeviation.ctMaxHu_3 = value // 4
                }"
              />
            </td>
            <td class="result">
              <el-input
                v-model="form.positioningLightAccuracy.ctHmHu"
                disabled
              />
            </td>
            <td class="multipleInput">
              <el-input v-model="form.positioningLightAccuracy.differenceX" />
            </td>
            <td class="result">
              <el-input
                v-model="form.positioningLightAccuracy.filmLightDeviation"
                disabled
              />
            </td>
          </tr>
        </table>
      </div>
    </div>

    <!-- <div class="innertitleContent">
      <div>
        <el-checkbox v-model="form.positioningLightAccuracy.phantomDetectionMethod">
          <span>模体法：</span>
          <span>偏离位移读数值<i>$d_{1}$</i>:<el-input v-model="form.positioningLightAccuracy.deviationDisplacement" class="input-line bdUnderline" />mm</span>
          <span>修正系数k:<el-input v-model="form.positioningLightAccuracy.correctionFactor" class="input-line bdUnderline" /></span>
          <span>定位光偏离d:<el-input v-model="form.positioningLightAccuracy.phantomLightDeviation" class="input-line bdUnderline" />mm</span>
        </el-checkbox>
      </div>
      <div>
        <el-checkbox v-model="form.positioningLightAccuracy.filmDetectionMethod">
          <span>胶片法：</span>
          <span>位光偏离d:<el-input v-model="form.positioningLightAccuracy.filmLightDeviation" class="input-line bdUnderline" />mm</span>
        </el-checkbox>
      </div>
      <div style="margin-top: 16px;"><span>计算公式:<i>$d = d_{1} · k$</i></span></div>
    </div> -->

    <div class="innertitle">
      3.扫描架倾角精度：
      <span style="font-weight: normal">
        （
        <el-checkbox v-model="form.inclinationAccuracy.testState">状态检测和稳定性检测无要求</el-checkbox>
        <el-checkbox v-model="form.inclinationAccuracy.noFunction">该机无此功能</el-checkbox>
        ）
      </span>
      <div class="innertitle-sub fr">
        <span style="padding-right: 40px"
          ><i>$α=arccos\frac {L_1}{L_2}$</i></span
        >
        <i>${E_d}=α-β$</i>
      </div>
    </div>
    <div>
      <div>
        3.1模体法检测条件：
        <el-input
          v-model="form.inclinationAccuracy.tubeVoltage"
          class="input-line"
          @change="(value) => {
            form.positioningLightAccuracy.tubeVoltage = value // 2
            form.thicknessDeviation.tubeVoltage = value // 4
            form.ctdiw.tubeVoltage1 = value // 5
            form.ctWaterNoiseUniformity.tubeVoltage = value // 6 7 8
            form.contrastResolutionHigh.tubeVoltage = value // 9
            // form.contrastResolutionHigh.tubeVoltage2 = value // 9
            form.contrastDetectabilityLow.tubeVoltage = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.tubeVoltage = value // 11
            }
          }"
        />
        kV
        <el-input
          v-model="form.inclinationAccuracy.tubeCurrent"
          class="input-line"
          @change="(value) => {
            form.positioningLightAccuracy.tubeCurrent = value // 2
            form.thicknessDeviation.tubeCurrent = value // 4
            form.ctdiw.tubeCurrent1 = value // 5
            form.ctWaterNoiseUniformity.tubeCurrent = value // 6 7 8
            form.contrastResolutionHigh.tubeCurrent = value // 9
            // form.contrastResolutionHigh.tubeCurrent2 = value // 9
            form.contrastDetectabilityLow.tubeCurrent = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.tubeCurrent = value // 11
            }
          }"
        />
        <el-radio-group
          v-model="form.inclinationAccuracy.tubeCurrentUnit"
          class="split-radio"
          @input="(value) => {
            form.positioningLightAccuracy.tubeCurrentUnit = value // 2
            form.thicknessDeviation.tubeCurrentUnit = value // 4
            form.ctdiw.tubeCurrentUnit1 = value // 5
            form.ctWaterNoiseUniformity.tubeCurrentUnit = value // 6 7 8
            form.contrastResolutionHigh.tubeCurrentUnit = value // 9
            form.contrastDetectabilityLow.tubeCurrentUnit = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.tubeCurrentUnit = value // 11
            }
          }"
        >
          <el-radio :label="0">mA</el-radio> <span class="split">/</span>
          <el-radio :label="1">mAs</el-radio>
        </el-radio-group>
        曝光时间(s)：
        <el-input
          v-model="form.inclinationAccuracy.exposureTime"
          class="input-line"
          @change="(value) => {
            form.positioningLightAccuracy.exposureTime = value // 2
            form.thicknessDeviation.exposureTime = value // 4
            form.ctdiw.ts1 = value // 5
            form.ctWaterNoiseUniformity.exposureTime = value // 6 7 8
            form.contrastResolutionHigh.exposureTime = value // 9
            // form.contrastResolutionHigh.exposureTime2 = value // 9
            form.contrastDetectabilityLow.exposureTime = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.exposureTime = value // 11
            }
          }"
        />
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td>倾角设定值β，°</td>
          <td><i>$L_1$</i>,mm</td>
          <td><i>$L_2$</i>,mm</td>
          <td>倾角测量值α，°</td>
          <td>扫描架倾角精度<i>$E_d$</i>,°</td>
        </tr>
        <tr>
          <td class="multipleInput">
            <el-input v-model="form.inclinationAccuracy.dipAngleB" />
          </td>
          <td class="multipleInput">
            <el-input v-model="form.inclinationAccuracy.l1" />
          </td>
          <td class="multipleInput">
            <el-input v-model="form.inclinationAccuracy.l2" />
          </td>
          <td class="result">
            <el-input v-model="form.inclinationAccuracy.dipAngleA" disabled />
          </td>
          <td class="result">
            <el-input
              v-model="form.inclinationAccuracy.dipAngleAccuracyDeviation"
              disabled
            />
          </td>
        </tr>
      </table>
      <div>
        注：<i>$L_1$</i>为垂直扫描时模体横断面影像中上下边沿之间的距离；<i>$L_2$</i>为机架倾斜α角度后模体横断面影像中上下边沿之间的距离。
      </div>
      <div>3.2斜率指示器法</div>
      <table border="1" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td>倾角设定值β，°</td>
          <td>倾角测量值，°</td>
          <td>修正值α，°</td>
          <td>扫描架倾角精度<i>$E_d$</i>,°</td>
        </tr>
        <tr>
          <td class="multipleInput">
            <el-input v-model="form.inclinationAccuracy.slantingDipAngleB" />
          </td>
          <td class="multipleInput">
            <el-input v-model="form.inclinationAccuracy.slantingTestVale" />
          </td>
          <td class="multipleInput">
            <el-input v-model="form.inclinationAccuracy.correctValueA" />
          </td>
          <td class="result">
            <el-input
              v-model="form.inclinationAccuracy.dipAngleAccuracyDeviation_2"
              disabled
            />
          </td>
        </tr>
      </table>
      <!-- <div>
        <img src="@/assets/images/test_item41/form3_formula.png" alt="">
      </div> -->
    </div>

    <div class="innertitle">
      4.重建层厚偏差(<el-checkbox v-model="form.thicknessDeviation.notHaveCondition">不满足检测条件</el-checkbox>)：
      <span class="innertitle-sub">
        检测条件：
        <el-input
          v-model="form.thicknessDeviation.tubeVoltage"
          class="input-line"
          @change="(value) => {
            form.positioningLightAccuracy.tubeVoltage = value // 2
            if (!form.inclinationAccuracy.testState) {
              form.inclinationAccuracy.tubeVoltage = value // 3
            }
            form.ctdiw.tubeVoltage1 = value // 5
            form.ctWaterNoiseUniformity.tubeVoltage = value // 6 7 8
            form.contrastResolutionHigh.tubeVoltage = value // 9
            // form.contrastResolutionHigh.tubeVoltage2 = value // 9
            form.contrastDetectabilityLow.tubeVoltage = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.tubeVoltage = value // 11
            }
          }"
        />
        kV
        <el-input
          v-model="form.thicknessDeviation.tubeCurrent"
          class="input-line"
          @change="(value) => {
            form.positioningLightAccuracy.tubeCurrent = value // 2
            if (!form.inclinationAccuracy.testState) {
              form.inclinationAccuracy.tubeCurrent = value // 3
            }
            form.ctdiw.tubeCurrent1 = value // 5
            form.ctWaterNoiseUniformity.tubeCurrent = value // 6 7 8
            form.contrastResolutionHigh.tubeCurrent = value // 9
            // form.contrastResolutionHigh.tubeCurrent2 = value // 9
            form.contrastDetectabilityLow.tubeCurrent = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.tubeCurrent = value // 11
            }
          }"
        />
        <el-radio-group
          v-model="form.thicknessDeviation.tubeCurrentUnit"
          class="split-radio"
          @input="(value) => {
            form.positioningLightAccuracy.tubeCurrentUnit = value // 2
            if (!form.inclinationAccuracy.testState) {
              form.inclinationAccuracy.tubeCurrentUnit = value // 3
            }
            form.ctdiw.tubeCurrentUnit1 = value // 5
            form.ctWaterNoiseUniformity.tubeCurrentUnit = value // 6 7 8
            form.contrastResolutionHigh.tubeCurrentUnit = value // 9
            form.contrastDetectabilityLow.tubeCurrentUnit = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.tubeCurrentUnit = value // 11
            }
          }"
        >
          <el-radio :label="0">mA</el-radio> <span class="split">/</span>
          <el-radio :label="1">mAs</el-radio>
        </el-radio-group>
        曝光时间(s)：
        <el-input
          v-model="form.thicknessDeviation.exposureTime"
          class="input-line"
          @change="(value) => {
            form.positioningLightAccuracy.exposureTime = value // 2
            if (!form.inclinationAccuracy.testState) {
              form.inclinationAccuracy.exposureTime = value // 3
            }
            form.ctdiw.ts1 = value // 5
            form.ctWaterNoiseUniformity.exposureTime = value // 6 7 8
            form.contrastResolutionHigh.exposureTime = value // 9
            // form.contrastResolutionHigh.exposureTime2 = value // 9
            form.contrastDetectabilityLow.exposureTime = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.exposureTime = value // 11
            }
          }"
        />
      </span>
      <br />
      <span style="margin-left: 16px">
        基线值：
        <el-input
          v-model="form.thicknessDeviation.baselineValue"
          class="input-line"
        />；
      </span>
      <span style="margin-left: 16px">
        与基线值偏差：
        <el-input
          v-model="form.thicknessDeviation.baselineValueDeviation"
          class="input-line result"
          disabled
        />；
      </span>
      <div class="innertitle-sub fr">
        <span style="padding-right: 30px"
          ><i>$CT_{hm}=\frac {CT_{max}+CT_{background}}{2}$</i></span
        >
        <i style="padding-right: 30px">$S_0=0.42X$</i>
        <i>$E_{s}=\frac {S_{0}-S}{S}\times 100\%$</i>
      </div>
    </div>
    <table border="1" cellspacing="0" cellpadding="0" align="center">
      <!-- <tr>
        <td colspan="2">标称层厚s，mm</td>
        <td>kV</td>
        <td>
          mAs
        </td>
        <td >窗宽窗位</td>
        <td :colspan="thicknessDeviation.table.td">测量值X</td>
        <td>检测结果</td>
      </tr>
      <tr v-for="index in thicknessDeviation.table.tr" :key="index">
        <td style="min-width: 100px;">{{ index==1 ? 's＞2': (index==2 ? '2≥s≥1':'s＜1')}}</td>
        <td>
          <el-input v-model="form.thicknessDeviation['thickness_'+index]"  />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation['tubeVoltage_'+index]"  />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation['tubeCurrent_'+index]"  />
        </td>
        <td class="multipleInput" style="min-width: 350px;">CT<span class="miniFont">max</span>=
          <el-input v-model="form.thicknessDeviation['ctMaxHu_'+index]" class="input-line" />CT<span
            class="miniFont">背景</span>=
          <el-input v-model="form.thicknessDeviation['ctBackgroundHu_'+index]" class="input-line" />CT<span
            class="miniFont">hm</span>=
          <el-input v-model="form.thicknessDeviation['ctHmHu_'+index]" class="input-line" />
        </td>
        <td v-for="tdIndex in thicknessDeviation.table.td" :key="tdIndex">
          <el-input v-model="form.thicknessDeviation['detectionValue_'+index+'_'+tdIndex]"  />
        </td>
        <td class="multipleInput" style="min-width: 100px;">
          <el-input v-model="form.thicknessDeviation['result_'+index]"  />{{index==2?'%':'mm'}}
        </td>
      </tr> -->
      <tr>
        <td rowspan="2">标称重建层厚S,mm</td>
        <td rowspan="2">最小窗宽</td>
        <td rowspan="2"><i>$CT_{background}$</i>HU</td>
        <td rowspan="2"><i>$CT_{max}$</i>,HU</td>
        <td rowspan="2"><i>$CT_{hm}$</i>,HU</td>
        <td colspan="4">标记物测量长度X,mm</td>
        <td rowspan="2">重建层厚<br />测量值<i>$S_0$</i>,mm</td>
        <td rowspan="2" width="100px">重建层厚<br />偏差<i>$E_s$</i>,</td>
      </tr>
      <tr>
        <td>上</td>
        <td>下</td>
        <td>左</td>
        <td>右</td>
      </tr>
      <tr>
        <td>
          <el-input v-model="form.thicknessDeviation.thickness_1" @change="(value) => {
            // form.positioningLightAccuracy.thickness = value // 2
            form.ctdiw.nt1 = value // 5
            form.ctWaterNoiseUniformity.thickness = value // 6 7 8
            form.contrastResolutionHigh.thickness = value // 9
            // form.contrastResolutionHigh.thickness2 = value // 9
            // form.contrastDetectabilityLow.thickness = value // 10
            if (!form.ctValueLinear.testState) {
              // form.ctValueLinear.thickness = value // 11
            }
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.minWindowWidth_1" @change="(value) => {
            form.positioningLightAccuracy.minWindowWidth = value // 2
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.ctBackgroundHu_1" @change="(value) => {
            form.positioningLightAccuracy.ctBackgroundHu = value // 2
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.ctMaxHu_1" @change="(value) => {
            form.positioningLightAccuracy.ctMaxHu = value // 2
          }" />
        </td>
        <td class="result">
          <el-input v-model="form.thicknessDeviation.ctHmHu_1" disabled />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_1_1" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_1_2" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_1_3" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_1_4" />
        </td>
        <td class="result">
          <el-input v-model="form.thicknessDeviation.testValue_1" />
        </td>
        <td class="result">
          <el-input style="width: 60px !important;" v-model="form.thicknessDeviation.result_1" disabled />
          <span>mm</span>
        </td>
      </tr>
      <tr>
        <td>
          <el-input v-model="form.thicknessDeviation.thickness_2" @change="(value) => {
            // form.positioningLightAccuracy.thickness = value // 2
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.minWindowWidth_2" @change="(value) => {
            form.positioningLightAccuracy.minWindowWidth = value // 2
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.ctBackgroundHu_2" @change="(value) => {
            form.positioningLightAccuracy.ctBackgroundHu = value // 2
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.ctMaxHu_2" @change="(value) => {
            form.positioningLightAccuracy.ctMaxHu = value // 2
          }" />
        </td>
        <td class="result">
          <el-input v-model="form.thicknessDeviation.ctHmHu_2" disabled />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_2_1" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_2_2" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_2_3" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_2_4" />
        </td>
        <td class="result">
          <el-input v-model="form.thicknessDeviation.testValue_2" disabled />
        </td>
        <td class="result">
          <el-input style="width: 60px !important;" v-model="form.thicknessDeviation.result_2" disabled />
          <span>%</span>
        </td>
      </tr>
      <tr>
        <td>
          <el-input v-model="form.thicknessDeviation.thickness_3" @change="(value) => {
            // form.positioningLightAccuracy.thickness = value // 2
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.minWindowWidth_3" @change="(value) => {
            form.positioningLightAccuracy.minWindowWidth = value // 2
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.ctBackgroundHu_3" @change="(value) => {
            form.positioningLightAccuracy.ctBackgroundHu = value // 2
          }" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.ctMaxHu_3" @change="(value) => {
            form.positioningLightAccuracy.ctMaxHu = value // 2
          }" />
        </td>
        <td class="result">
          <el-input v-model="form.thicknessDeviation.ctHmHu_3" disabled />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_3_1" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_3_2" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_3_3" />
        </td>
        <td>
          <el-input v-model="form.thicknessDeviation.detectionValue_3_4" />
        </td>
        <td class="result">
          <el-input v-model="form.thicknessDeviation.testValue_3" disabled />
        </td>
        <td class="result">
          <el-input style="width: 60px !important;" v-model="form.thicknessDeviation.result_3" disabled />
          <span>mm</span>
        </td>
      </tr>
    </table>
    <div style="display: flex; align-items: center">
      注：<i>$CT_{max}$</i>为标记物影像恰好完全消失时的CT值；<i>$CT_{background}$</i>为标记物附近背景的CT值；<i>$CT_{hm}$</i>为CT值的半高。
      <!-- <img src="@/assets/images/test_item41/form4_formula1.png" alt=""><img
        src="@/assets/images/test_item41/form4_formula2.png" alt=""> -->
    </div>

    <div class="innertitle">5. <i>$CTDI_W$</i>：</div>
    <div class="innertitle">
      5.1 头部模体
      <span style="margin-left: 16px"
        >修正因子 <i>$f: $</i>
        <el-input
          v-model="form.ctdiw.calibrationFactor1"
          class="input-line result"
          disabled
        />
      </span>
      <span style="margin-left: 16px">
        基线值：
        <el-input
          v-model="form.ctdiw.baselineValue"
          class="input-line"
        />；
      </span>
      <span style="margin-left: 16px">
        与基线值偏差：
        <el-input
          v-model="form.ctdiw.baselineValueDeviation"
          class="input-line result"
          disabled
        />；
      </span>
      <div class="innertitle-sub fr">
        <span style="padding-right: 30px"
          ><i>$CTDI_{100}=\frac {10Rf}{NT}$</i></span
        >
        <i style="padding-right: 30px"
          ><i
            >$CTDI_{w}=\frac {1}{3}CDTI_{100,c} + \frac {2}{3}CDTI_{100,p}$</i
          ></i
        >
        <i>$偏差=\frac {CTDI_{w}-CTDI_{厂}}{CTDI_{厂}}\times 100\%$</i>
      </div>
    </div>
    <table border="1" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td colspan="4">检测条件</td>
        <td>测量位置</td>
        <td>仪器读数R,mGy</td>
        <td>修正值<i>$CTDI_{100}$</i>,mGy</td>
        <td><i>$CTDI_w$</i>,mGy</td>
        <td>厂家指标 CTDI</td>
      </tr>
      <tr>
        <td>kV</td>
        <td colspan="3">
          <el-input v-model="form.ctdiw.tubeVoltage1" @input="(value) => {
            form.ctWaterNoiseUniformity.tubeVoltage = value // 6 7 8
            form.contrastResolutionHigh.tubeVoltage = value // 9
            // form.contrastResolutionHigh.tubeVoltage2 = value // 9
            form.contrastDetectabilityLow.tubeVoltage = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.tubeVoltage = value // 11
            }
          }"/>
        </td>
        <td>中心</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueCenter1" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueCenter1" disabled />
        </td>
        <td rowspan="5" class="result">
          <el-input v-model="form.ctdiw.displayValue1" disabled />
        </td>
        <td rowspan="2">
          <div style="display: flex; justify-content: space-around">
            <el-input
              v-model="form.ctdiw.manufacturerValue1"
              class="multipleInput"
            />
            <div style="width: 35px">mGy</div>
          </div>
        </td>
      </tr>
      <tr>
        <td width="100px">
          <el-radio-group
            v-model="form.ctdiw.tubeCurrentUnit1"
            class="split-radio"
            @change="(value) => {
              form.ctWaterNoiseUniformity.tubeCurrentUnit = value // 6 7 8
              form.contrastResolutionHigh.tubeCurrentUnit = value // 9
              form.contrastDetectabilityLow.tubeCurrentUnit = value // 10
              if (!form.ctValueLinear.testState) {
                form.ctValueLinear.tubeCurrentUnit = value // 11
              }
            }"
          >
            <el-radio :label="0">mA</el-radio><br/>
            <el-radio :label="1">mAs</el-radio>
          </el-radio-group>
        </td>
        <td colspan="3">
          <el-input v-model="form.ctdiw.tubeCurrent1" @input="(value) => {
            form.ctWaterNoiseUniformity.tubeCurrent = value // 6 7 8
            form.contrastResolutionHigh.tubeCurrent = value // 9
            // form.contrastResolutionHigh.tubeCurrent2 = value // 9
            form.contrastDetectabilityLow.tubeCurrent = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.tubeCurrent = value // 11
            }
          }"/>
        </td>
        <td>上方</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueAbove1" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueAbove1" disabled />
        </td>
      </tr>
      <tr>
        <td>t,s</td>
        <td colspan="3">
          <el-input v-model="form.ctdiw.ts1" @input="(value) => {
            form.ctWaterNoiseUniformity.exposureTime = value // 6 7 8
            form.contrastResolutionHigh.exposureTime = value // 9
            // form.contrastResolutionHigh.exposureTime2 = value // 9
            form.contrastDetectabilityLow.exposureTime = value // 10
            if (!form.ctValueLinear.testState) {
              form.ctValueLinear.exposureTime = value // 11
            }
          }" />
        </td>
        <td>下方</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueBelow1" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueBelow1" disabled />
        </td>
        <td>与厂家指标偏差</td>
      </tr>
      <tr>
        <td>N</td>
        <td width="80px"><el-input v-model="form.ctdiw.n1" /></td>
        <td width="80px">T，mm</td>
        <td width="80px"><el-input v-model="form.ctdiw.nt1" @input="(value) => {
          form.ctWaterNoiseUniformity.thickness = value // 6 7 8
          form.contrastResolutionHigh.thickness = value // 9
          // form.contrastResolutionHigh.thickness2 = value // 9
          // form.contrastDetectabilityLow.thickness = value // 10
          if (!form.ctValueLinear.testState) {
            // form.ctValueLinear.thickness = value // 11
          }
        }" /></td>
        <td>左侧</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueLeft1" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueLeft1" disabled />
        </td>
        <td class="result" rowspan="2">
          <div style="display: flex; justify-content: space-around">
            <el-input
              v-model="form.ctdiw.deviation1"
              class="multipleInput"
              disabled
            />
            <div style="width: 35px">%</div>
          </div>
        </td>
      </tr>
      <tr>
        <td>FOV，mm</td>
        <td colspan="3">
          <el-input v-model="form.ctdiw.fov1" @input="(value) => {
            form.ctWaterNoiseUniformity.fov = value // 6 7 8
            form.contrastResolutionHigh.fov = value // 9
            form.contrastResolutionHigh.fov2 = value // 9
            form.contrastDetectabilityLow.fov = value // 10
            form.ctValueLinear.fov = value // 11
          }" />
        </td>
        <td>右侧</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueRight1" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueRight1" disabled />
        </td>
      </tr>
    </table>
    <div class="innertitle">
      5.2 体部模体
      <span style="margin-left: 16px"
        >修正因子 <i>$f: $</i>
        <el-input
          v-model="form.ctdiw.calibrationFactor2"
          class="input-line result"
          disabled
      /></span>
      （<el-checkbox v-model="form.ctdiw.notHaveState"
        >状态检测无此项</el-checkbox
      >）
    </div>
    <table border="1" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td colspan="4">检测条件</td>
        <td>测量位置</td>
        <td>仪器读数R,mGy</td>
        <td>修正值<i>$CTDI_{100}$</i>,mGy</td>
        <td><i>$CTDI_w$</i>,mGy</td>
        <td>厂家指标 CTDI</td>
      </tr>
      <tr>
        <td>kV</td>
        <td colspan="3">
          <el-input v-model="form.ctdiw.tubeVoltage2" />
        </td>
        <td>中心</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueCenter2" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueCenter2" disabled />
        </td>
        <td rowspan="5" class="result">
          <el-input v-model="form.ctdiw.displayValue2" disabled />
        </td>
        <td rowspan="2">
          <div style="display: flex; justify-content: space-around">
            <el-input
              v-model="form.ctdiw.manufacturerValue2"
              class="multipleInput"
            />
            <div style="width: 35px">mGy</div>
          </div>
        </td>
      </tr>
      <tr>
        <td width="100px">
          <el-radio-group
            v-model="form.ctdiw.tubeCurrentUnit2"
            class="split-radio"
          >
            <el-radio :label="0">mA</el-radio><br />
            <el-radio :label="1">mAs</el-radio>
          </el-radio-group>
        </td>
        <td colspan="3">
          <el-input v-model="form.ctdiw.tubeCurrent2" />
        </td>
        <td>上方</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueAbove2" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueAbove2" disabled />
        </td>
      </tr>
      <tr>
        <td>t,s</td>
        <td colspan="3"><el-input v-model="form.ctdiw.ts2" /></td>
        <td>下方</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueBelow2" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueBelow2" disabled />
        </td>
        <td>与厂家指标偏差</td>
      </tr>
      <tr>
        <td>N</td>
        <td width="80px"><el-input v-model="form.ctdiw.n2" /></td>
        <td width="80px">T，mm</td>
        <td width="80px"><el-input v-model="form.ctdiw.nt2" /></td>
        <td>左侧</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueLeft2" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueLeft2" disabled />
        </td>
        <td class="result" rowspan="2">
          <div style="display: flex; justify-content: space-around">
            <el-input
              v-model="form.ctdiw.deviation2"
              class="multipleInput"
              disabled
            />
            <div style="width: 35px">%</div>
          </div>
        </td>
      </tr>
      <tr>
        <td>FOV，mm</td>
        <td colspan="3"><el-input v-model="form.ctdiw.fov2" /></td>
        <td>右侧</td>
        <td>
          <el-input v-model="form.ctdiw.readoutValueRight2" />
        </td>
        <td class="result">
          <el-input v-model="form.ctdiw.headCalculateValueRight2" disabled />
        </td>
      </tr>
    </table>
    <!-- <div>
      计算公式：<i>$CTDI_{100} = \frac{1}{N·T}\int_{-50mm}^{50mm}D(z)dz, CTDI_{w测量值} = (\frac{1}{3}CTDI_{100,中心}+\frac{2}{3}CTDI_{100,外围均值}) · k$</i>
      <div style="margin-top: 6px"><i>$E = (CTDI_{w测量值} · I_{0}t_{0}/I_{1}t_{1}-CTDI_{w厂家说明书})/CTDI_{w厂家说明书}$</i>× 100%</div>
    </div> -->
    <div>
      注：N为单次扫描的断层数；T为标称层厚；<i>$CTDI_{100}$</i>,c为模体中心点采集的<i>$CTDI_{100}$</i>；<i>$CTDI_{100}$</i>,p为模体外围各点采集的<i>$CTDI_{100}$</i>的平均值。
    </div>

    <div
      class="innertitle"
      style="display: flex; justify-content: space-between; align-items: center"
    >
      <div>
        6. CT值(水HU)、7.均匀性、8.噪声、：
        <div style="font-weight: normal">
          内径为
          <el-input v-model="form.ctWaterNoiseUniformity.insideDiameter" class="input-line"></el-input>
          cm的均质水圆柱形模体；<br />
          基线值：<i>$CT_{水}(HU)$</i>
          <el-input v-model="form.ctWaterNoiseUniformity.baselineValueCtValueWater" class="input-line"></el-input>，
          均匀性:
          <el-input v-model="form.ctWaterNoiseUniformity.baselineValueUniformity" class="input-line"></el-input>，
          噪声:
          <el-input v-model="form.ctWaterNoiseUniformity.baselineValueNoiseN10" class="input-line"></el-input>;
          <br />
          与基线值偏差：<i>$CT值(HU)$</i>
          <el-input v-model="form.ctWaterNoiseUniformity.baselineValueDeviationCtValueWater" disabled class="input-line result"></el-input>，
          均匀性(HU):
          <el-input v-model="form.ctWaterNoiseUniformity.baselineValueDeviationUniformity" disabled class="input-line result"></el-input>，
          噪声(%):
          <el-input v-model="form.ctWaterNoiseUniformity.baselineValueDeviationNoiseN10" disabled class="input-line result"></el-input>;
        </div>
      </div>
      <div class="innertitle-sub fr">
        <span style="padding-right: 30px"
          ><i>$n = \frac {\sigma_水}{CT_水 - CT_{空气} } \times 100\%$</i></span
        >
        <i>$n_{10} = n_T \sqrt{ \frac {T}{10} }$</i>
      </div>
    </div>
    <!-- <div >
      模体：内径18cm～22cm圆柱形匀质水模体，头部扫描条件，扫描剂量CTDIW应不大于50mGy，在图像中心选取直径约为模体图像直径10%的ROI，进行水的CT值测量。选取直径约为模体图像直径40%的ROI，测量CT值标准偏差<img
        src="@/assets/images/test_item41/water.png" alt="" style="transform: translateY(5px);">水。<img src="@/assets/images/test_item41/water.png" alt="" style="transform: translateY(5px);">水= sd
    </div> -->
    <table border="1" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td rowspan="2" colspan="2">检测条件</td>
        <td rowspan="2" style="width: 80px;">测量位置</td>
        <td rowspan="2">平均CT值,HU</td>
        <td rowspan="2">标准偏差,HU</td>
        <td rowspan="2"><i>$CT_{空气}$</i><br />HU</td>
        <td colspan="5">噪声值,%</td>
      </tr>
      <tr>
        <td colspan="2">测量值n</td>
        <td colspan="3">层厚修正值N</td>
      </tr>
      <tr>
        <td style="width: 130px;">kV</td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.tubeVoltage" />
        </td>
        <td>中心</td>
        <td>
          <i>$CT_水$</i>=
          <el-input
            v-model="form.ctWaterNoiseUniformity.ctValueWater"
            class="multipleInput"
          />
        </td>
        <td>
          <i>$\sigma_水$</i>=
          <el-input
            v-model="form.ctWaterNoiseUniformity.standardDeviation"
            class="multipleInput"
          />
        </td>
        <td class="result">
          <el-input v-model="form.ctWaterNoiseUniformity.ctValueCenter" disabled/>
        </td>
        <td colspan="2" class="result">
          <el-input v-model="form.ctWaterNoiseUniformity.noise" disabled />
        </td>
        <td colspan="3" class="result">
          <el-input v-model="form.ctWaterNoiseUniformity.noiseN10" disabled/>
        </td>
      </tr>
      <tr>
        <td>
          <el-radio-group
            v-model="form.ctWaterNoiseUniformity.tubeCurrentUnit"
            class="split-radio"
          >
            <el-radio :label="0">mA</el-radio> <span class="split">/</span>
            <el-radio :label="1">mAs</el-radio>
          </el-radio-group>
        </td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.tubeCurrent" />
        </td>
        <td>上方</td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.ctValue_0" />
        </td>
        <!-- <td>
          <el-input v-model="form.ctWaterNoiseUniformity.outsideDeviation1" />
        </td> -->
        <td rowspan="4" colspan="2">与中心的差值,HU</td>
        <td colspan="2" class="result">
          <el-input v-model="form.ctWaterNoiseUniformity.difference_1" disabled/>
        </td>
        <td rowspan="4" colspan="1" style="width: 100px;">均匀性<br />HU<br />（最大差值）</td>
        <td rowspan="4" colspan="2" class="result">
          <el-input v-model="form.ctWaterNoiseUniformity.uniformity" disabled/>
        </td>
      </tr>
      <tr>
        <td>t,s</td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.exposureTime" />
        </td>
        <td>下方</td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.ctValue_6" />
        </td>
        <!-- <td>
          <el-input v-model="form.ctWaterNoiseUniformity.outsideDeviation2" disabled/>
        </td> -->
        <td colspan="2" class="result">
          <el-input v-model="form.ctWaterNoiseUniformity.difference_2" disabled/>
        </td>
      </tr>
      <tr>
        <td>T，mm</td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.thickness" />
        </td>
        <td>左侧</td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.ctValue_9" />
        </td>
        <!-- <td>
          <el-input v-model="form.ctWaterNoiseUniformity.outsideDeviation3" disabled/>
        </td> -->
        <td colspan="2" class="result">
          <el-input v-model="form.ctWaterNoiseUniformity.difference_3" disabled/>
        </td>
      </tr>
      <tr>
        <td>FOV，mm</td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.fov" />
        </td>
        <td>右侧</td>
        <td>
          <el-input v-model="form.ctWaterNoiseUniformity.ctValue_3" />
        </td>
        <!-- <td>
          <el-input v-model="form.ctWaterNoiseUniformity.outsideDeviation4" />
        </td> -->
        <td colspan="2" class="result">
          <el-input v-model="form.ctWaterNoiseUniformity.difference_4" disabled/>
        </td>
      </tr>
    </table>

    <div class="innertitle">9.高对比分辨力：</div>
    <table border="1" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td>kV</td>
        <td>
          <el-radio-group
            v-model="form.contrastResolutionHigh.tubeCurrentUnit"
            class="split-radio"
          >
            <el-radio :label="0">mA</el-radio> <span class="split">/</span>
            <el-radio :label="1">mAs</el-radio>
          </el-radio-group>
        </td>
        <td>t,s</td>
        <td>T,mm</td>
        <td>FOV,mm</td>
        <!-- <td>重建矩阵</td> -->
        <td>算法</td>
        <td>窗宽</td>
        <td>窗位</td>
        <td>线对数,lp/cm</td>
      </tr>
      <tr class="multipleInput">
        <td>
          <el-input v-model="form.contrastResolutionHigh.tubeVoltage" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.tubeCurrent" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.exposureTime" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.thickness" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.fov" />
        </td>
        <!-- <td>
          <div style="display: flex; justify-content: space-between">
            <el-input
              v-model="form.contrastResolutionHigh.matrixA"
              class="input-line"
            />×<el-input
              v-model="form.contrastResolutionHigh.matrixB"
              class="input-line"
            />
          </div>
        </td> -->
        <td>常规算法</td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.wide" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.windowPosition" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.resolvingPair_1" />
        </td>
      </tr>
      <tr class="multipleInput">
        <td>
          <el-input v-model="form.contrastResolutionHigh.tubeVoltage2" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.tubeCurrent2" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.exposureTime2" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.thickness2" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.fov2" />
        </td>
        <!-- <td>
          <div style="display: flex; justify-content: space-between">
            <el-input
              v-model="form.contrastResolutionHigh.matrixA2"
              class="input-line"
            />×<el-input
              v-model="form.contrastResolutionHigh.matrixB2"
              class="input-line"
            />
          </div>
        </td> -->
        <td>高分辨力算法</td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.wide2" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.windowPosition2" />
        </td>
        <td>
          <el-input v-model="form.contrastResolutionHigh.resolvingPair_2" />
        </td>
      </tr>
    </table>

    <div class="innertitle">
      10.低对比可探测能力：
      <div class="innertitle-sub fr">
        <i style="padding-right: 5px"
          >$\sigma = \frac {SD_{目标} }{1000} \times 100 \%$</i
        >
        <i style="padding-right: 10px"
          >$C = \frac {CT_{细节} - CT_{背景} }{1000} \times 100 \%$</i
        >
        <span v-show="form.contrastDetectabilityLow.gb_17589_2011">
          <i style="padding-right: 10px"
            >$R_{s} = \sqrt[3] \frac{\sigma^2 R^3}{0.50^2}$</i
          >
          <i style="padding-right: 10px"
            >$\Sigma LCD = \Sigma (C_n \times R_s)$</i
          >
        </span>
        <span v-show="form.contrastDetectabilityLow.ws_519_2019">
          <i style="padding-right: 10px"
            >$\Sigma LCD = \Sigma (R_n \times C_n)$</i
          >
        </span>
        <i>$LCD_{avg} = \frac{\Sigma LCD}{3}$</i>
      </div>
      <!-- <span>
        检测条件：
        <el-input v-model="form.contrastDetectabilityLow.tubeVoltage"  />kV,
        <el-input v-model="form.contrastDetectabilityLow.tubeCurrent"  />mAs
      </span> -->
    </div>
    <table border="1" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td>kV</td>
        <td>
          <el-radio-group
            v-model="form.contrastDetectabilityLow.tubeCurrentUnit"
            class="split-radio"
          >
            <el-radio :label="0">mA</el-radio>
            <el-radio :label="1">mAs</el-radio>
          </el-radio-group>
        </td>
        <td>t,s</td>
        <td>T,mm</td>
        <td>FOV,mm</td>
        <!-- <td>重建矩阵</td> -->
        <td>算法</td>
      </tr>
      <tr>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.tubeVoltage" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.tubeCurrent" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.exposureTime" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.thickness" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.fov" />
        </td>
        <!-- <td>
          <div style="display: flex">
            <el-input
              v-model="form.contrastDetectabilityLow.matrixA"
              class="input-line"
            />×<el-input
              v-model="form.contrastDetectabilityLow.matrixB"
              class="input-line"
            />
          </div>
        </td> -->
        <td>
          <el-input v-model="form.contrastDetectabilityLow.algorithm" />
        </td>
      </tr>
    </table>
    <table border="1" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td rowspan="2" width="100px">标称对<br />比度,<i>$C_n$</i></td>
        <td colspan="3">细节（孔内）</td>
        <td colspan="2">背景（孔外）</td>
        <td rowspan="2">窗宽</td>
        <td rowspan="2">窗位</td>
        <!-- <td rowspan="2">实测对比度<br />C,%</td> -->
        <td rowspan="2">能观察到的<br />最小直径R,mm</td>
        <td rowspan="2">检测值<br /><i>$LCD_{avg}$</i></td>
      </tr>
      <tr>
        <td>平均CT值,HU</td>
        <td>标准偏差SD,HU</td>
        <td>噪声<br />σ,%</td>
        <td>平均CT值,HU</td>
        <td>标准偏差SD,HU</td>
      </tr>
      <tr>
        <td>1.0</td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.insideAvg1" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.insideDeviation1" />
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.noise1" disabled/>
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.outsideAvg1" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.outsideDeviation1" />
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.windowWidth1" disabled/>
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.windowPosition1" disabled/>
        </td>
        <!-- <td>
          <el-input v-model="form.contrastDetectabilityLow.contrast1" />
        </td> -->
        <td>
          <el-input v-model="form.contrastDetectabilityLow.minDiameter1" />
        </td>
        <td rowspan="3" class="result">
          <el-input v-model="form.contrastDetectabilityLow.detectabilityValue" disabled/>
        </td>
      </tr>
      <tr>
        <td>0.5</td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.insideAvg2" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.insideDeviation2" />
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.noise2" disabled/>
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.outsideAvg2" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.outsideDeviation2" />
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.windowWidth2" disabled/>
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.windowPosition2" disabled/>
        </td>
        <!-- <td>
          <el-input v-model="form.contrastDetectabilityLow.contrast2" />
        </td> -->
        <td>
          <el-input v-model="form.contrastDetectabilityLow.minDiameter2" />
        </td>
      </tr>
      <tr>
        <td>0.3</td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.insideAvg3" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.insideDeviation3" />
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.noise3" disabled/>
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.outsideAvg3" />
        </td>
        <td>
          <el-input v-model="form.contrastDetectabilityLow.outsideDeviation3" />
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.windowWidth3" disabled/>
        </td>
        <td class="result">
          <el-input v-model="form.contrastDetectabilityLow.windowPosition3" disabled/>
        </td>
        <!-- <td>
          <el-input v-model="form.contrastDetectabilityLow.contrast3" />
        </td> -->
        <td>
          <el-input v-model="form.contrastDetectabilityLow.minDiameter3" />
        </td>
      </tr>
    </table>

    <div class="innertitle">
      11.CT值线性：<span style="font-weight: normal"
        >（<el-checkbox v-model="form.ctValueLinear.testState"
          >状态检测无此项</el-checkbox
        >）
        <div class="innertitle-sub fr">
          <i>$L = CT_{n}-CT_{m}$</i>
        </div>
      </span>
    </div>
    <div>
      <div>
        <!-- 扫描条件：<el-input v-model="form.ctValueLinear.tubeVoltage" class="input-line" />kV，<el-input v-model="form.ctValueLinear.tubeCurrent" class="input-line" /> -->
        <!-- <el-select v-model="form.ctValueLinear.tubeCurrentUnit" placeholder="请选择">
            <el-option label="mA" :value="0"></el-option>
            <el-option label="mAs" :value="1"></el-option>
        </el-select> -->
        <!-- ， <el-input v-model="form.ctValueLinear.exposureTime" class="input-line" />s -->
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td>kV</td>
          <td>
            <el-radio-group
              v-model="form.ctValueLinear.tubeCurrentUnit"
              class="split-radio"
            >
              <el-radio :label="0">mA</el-radio>
              <el-radio :label="1">mAs</el-radio>
            </el-radio-group>
          </td>
          <td>t,s</td>
          <td>T,mm</td>
          <td>FOV,mm</td>
          <!-- <td>重建矩阵</td> -->
          <td>算法</td>
        </tr>
        <tr>
          <td>
            <el-input v-model="form.ctValueLinear.tubeVoltage" />
          </td>
          <td>
            <el-input v-model="form.ctValueLinear.tubeCurrent" />
          </td>
          <td>
            <el-input v-model="form.ctValueLinear.exposureTime" />
          </td>
          <td>
            <el-input v-model="form.ctValueLinear.thickness" />
          </td>
          <td>
            <el-input v-model="form.ctValueLinear.fov" />
          </td>
          <!-- <td>
            <div style="display: flex">
              <el-input
                v-model="form.ctValueLinear.matrixA"
                class="input-line"
              />×<el-input
                v-model="form.ctValueLinear.matrixB"
                class="input-line"
              />
            </div>
          </td> -->
          <td>
            <el-input v-model="form.ctValueLinear.algorithm" />
          </td>
        </tr>
      </table>
      <table border="1" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td rowspan="2">CT值模块</td>
          <td colspan="2">标称CT值<i>$CT_n,HU$</i></td>
          <td rowspan="2">平均CT值<br /><i>$CT_m,HU$</i></td>
          <!-- <td rowspan="2">标准偏差,HU</td> -->
          <td rowspan="2">CT值之差<br />L,HU</td>
          <td rowspan="2">检测结果,HU</td>
        </tr>
        <tr>
          <td>
            <el-radio v-model="form.ctValueLinear.catphan" :label="2"
              >Catphan600</el-radio
            >
          </td>
          <td>
            <el-radio v-model="form.ctValueLinear.catphan" :label="1"
              >Catphan500</el-radio
            >
          </td>
        </tr>

        <tr v-for="(item, index) in ctValueLinear.table" :key="index">
          <td>{{ item.param }}</td>
          <td class="result">
            <el-input v-model="form.ctValueLinear['air_2']" disabled v-if="item.param == 'Air'"/>
            <el-input v-model="form.ctValueLinear['acrylic_2']" disabled v-if="item.param == 'Acrylic'"/>
            <el-input v-model="form.ctValueLinear['ldpe_2']" disabled v-if="item.param == 'LDPE'"/>
            <el-input v-model="form.ctValueLinear['teflon_2']" disabled v-if="item.param == 'Teflon'"/>
          </td>
          <td class="result">
            <el-input v-model="form.ctValueLinear['air_1']" disabled v-if="item.param == 'Air'"/>
            <el-input v-model="form.ctValueLinear['acrylic_1']" disabled v-if="item.param == 'Acrylic'"/>
            <el-input v-model="form.ctValueLinear['ldpe_1']" disabled v-if="item.param == 'LDPE'"/>
            <el-input v-model="form.ctValueLinear['teflon_1']" disabled v-if="item.param == 'Teflon'"/>
          </td>
          <td>
            <el-input v-model="form.ctValueLinear['avg' + (index + 1)]" />
          </td>
          <!-- <td>
            <el-input v-model="form.ctValueLinear['deviation' + (index + 1)]" />
          </td> -->
          <td class="result">
            <el-input v-model="form.ctValueLinear['difference' + (index + 1)]" disabled/>
          </td>
          <td v-if="index == 0" rowspan="4" class="result">
            <el-input v-model="form.ctValueLinear.result" disabled/>
          </td>
        </tr>
        <!-- <tr>
          <td><el-input v-model="form.ctValueLinear.ctValue"  /></td>
          <td><el-input v-model="form.ctValueLinear.ctNominalValue"  /></td>
          <td><el-input v-model="form.ctValueLinear.readoutValueOther"  /></td>
          <td><el-input v-model="form.ctValueLinear.linearValueOther"  /></td>
        </tr> -->
      </table>
    </div>

    <div id="table9">
      <div class="innertitle">
        其他说明：
      </div>
      <div class="tip-30">
        <el-input
          type="textarea"
          placeholder=""
          v-model="basicForm.specialCircumstances"
          :autosize="{minRows:2}"
          @blur="$bus.$emit('update-basicinfo', basicForm.taskDetectionEquipmentResultId)"
        ></el-input>
      </div>
    </div>
  </div>
</template>

<script>
import { getInfoById13, postInfo } from "@/api/testItem/item13";
import _ from "lodash";
export default {
  name: "testItem13",
  data() {
    return {
      thicknessDeviation: {
        table: {
          tr: 3,
          td: 4,
        },
        action: "thicknessDeviation",
        flag: true,
        loading: false,
      },
      contrastDetectabilityLow: {
        table: ["0.3", "0.5", "1.0"],
        action: "detectabilityLow",
        flag: true,
        loading: false,
      },
      positioningAccuracy: {
        action: "accuracy",
        flag: true,
        loading: false,
      },
      positioningLightAccuracy: {
        action: "lightAccuracy",
        flag: true,
        loading: false,
      },
      inclinationAccuracy: {
        action: "inclinationAccuracy",
        flag: true,
        loading: false,
      },
      ctdiw: {
        action: "ctdiw",
        flag: true,
        loading: false,
      },
      ctWaterNoiseUniformity: {
        action: "noiseUniformity",
        flag: true,
        loading: false,
      },
      contrastResolutionHigh: {
        action: "resolutionHigh",
        flag: true,
        loading: false,
      },
      ctValueLinear: {
        table: [
          {
            name: "空气",
            param: "Air",
            ct: "-1000",
            plus: "-995",
            notPlus: "-998",
          },
          // {
          //   name:'特氟隆',
          //   param: 'Teflon',
          //   ct:'950'
          // },
          {
            name: "丙烯",
            param: "Acrylic",
            ct: "120",
            plus: "122",
            notPlus: "120",
          },
          {
            name: "低密度聚乙烯",
            param: "LDPE",
            ct: "-100",
            plus: "-94",
            notPlus: "-95",
          },
          {
            name: "特氟隆",
            param: "Teflon",
            ct: "950",
            plus: "950",
            notPlus: "950",
          }
        ],
        flag: true,
        action: "ctValueLinear",
        loading: false,
      },
      form: {
        itemsId: null,
        resultId: null,
        positioningAccuracy: {},
        positioningLightAccuracy: {},
        inclinationAccuracy: {},
        thicknessDeviation: {},
        ctdiw: {},
        ctWaterNoiseUniformity: {},
        contrastResolutionHigh: {},
        contrastDetectabilityLow: {},
        ctValueLinear: {},
        lightAccuracy: {},
      },
    };
  },
  props: {
    // tab栏
    activeNameEquipment: {
      type: String,
      default: "0",
    },
    // 基本信息数据
    basicForm: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  watch: {
    activeNameEquipment: {
      handler(val) {
        this.$nextTick(() => {
          let resultId = this.basicForm.resultId;
          getInfoById13(resultId)
            .then((response) => {
              if (response.code == 200) {
                let data = response.data;
                console.log(data);
                for (let keys in data) {
                  // 设置默认值
                  if (this[keys]) {
                    data[keys] = {
                      ...data[keys],
                    };
                  }
                  this.form[keys] = data[keys] || {};
                }
              }
            })
            .catch((response) => {
              this.$emit("loadingchange", true);
            });
        });
      },
      deep: true,
      immediate: true,
    },
    "form.positioningAccuracy": {
      handler: _.debounce(function (newName, oldName) {
        let notNumber = [
          'testItemName', 'testItemResult',
          "forwardBedStart",
          "forwardBedEnd",
          "forwardBedResult",
          "backBedStart",
          "backBedEnd",
          "backBedResult",
        ];
        this.validateData(newName, "positioningAccuracy", notNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
    "form.positioningLightAccuracy": {
      handler: _.debounce(function (newName, oldName) {
        let notNumber = [
          'testItemName', 'testItemResult',
          "method",
          "thickness",
          "minWindowWidth",
          "ctBackgroundHu",
          "ctMaxHu",
          "ctHmHu",
          "differenceX",
          "filmLightDeviation",
          "notHaveCondition"
        ];
        this.validateData(newName, "positioningLightAccuracy", notNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
    "form.inclinationAccuracy": {
      handler: _.debounce(function (newName, oldName) {
        let notNumber = [
          'testItemName', 'testItemResult',
          "testState",
          "noFunction",
          "phantomDetectionMethod",
          "notHave",
          "slopeIndicatorMethod",
          "moveType",
          "dipAngleAccuracyDeviation",
          "dipAngleAccuracyDeviation_2",
        ];
        this.validateData(newName, "inclinationAccuracy", notNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
    "form.thicknessDeviation": {
      handler: _.debounce(function (newName, oldName) {
        let notNumber = [
          'testItemName', 'testItemResult',
          "tubeCurrentUnit",
          "testValue_1",
          "testValue_2",
          "testValue_3",
          "result_1",
          "result_2",
          "result_3",
          "notHaveCondition"
        ];
        this.validateData(newName, "thicknessDeviation", notNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
    "form.ctdiw": {
      handler: _.debounce(function (newName, oldName) {
        let myName = "ctdiw";
        let notNumber = [
          'testItemName', 'testItemResult',
          "notHaveState",
          "tubeVoltage",
          "tubeCurrent",
          "layerThickness",
          "sweepWidth",
          "calibrationFactor",
          "readoutValueCenter",
          "readoutValueAbove",
          "readoutValueLeft",
          "readoutValueRight",
          "readoutValueBelow",
          "displayValue",
          "manufacturerValue",
          "manufacturerCondition",
          "deviation1",
          "deviation2",
          "headCalculateValueRight1",
          "headCalculateValueRight2",
          "headCalculateValueAbove1",
          "headCalculateValueAbove2",
        ]; //不需要数字验证的字段
        let intNumber = []; //需要验证整数字段
        this.validateData(newName, myName, notNumber, intNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
    "form.ctWaterNoiseUniformity": {
      handler: _.debounce(function (newName, oldName) {
        let notNumber = [
          'testItemName', 'testItemResult',
          "tubeCurrentUnit"
        ];
        let intNumber = [];
        let myName = "ctWaterNoiseUniformity";
        this.validateData(newName, myName, notNumber, intNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
    "form.contrastResolutionHigh": {
      handler: _.debounce(function (newName, oldName) {
        let notNumber = [
          'testItemName', 'testItemResult',
          "tubeVoltage",
          "tubeCurrent",
          "thickness",
          "highResolution",
        ];
        let intNumber = [];
        let myName = "contrastResolutionHigh";
        this.validateData(newName, myName, notNumber, intNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
    "form.contrastDetectabilityLow": {
      handler: _.debounce(function (newName, oldName) {
        let notNumber = [
          'testItemName',
          'testItemResult',
          "tubeCurrentUnit",
          "highResolutionTestState",
          "gb_17589_2011",
          "ws_519_2019"
        ];
        let intNumber = [];
        let myName = "contrastDetectabilityLow";
        this.validateData(newName, myName, notNumber, intNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
    "form.ctValueLinear": {
      handler: _.debounce(function (newName, oldName) {
        let notNumber = [
          'testItemName', 'testItemResult',
          "testState"
        ];
        let intNumber = [];
        let reg = /[^-?\d.,]/g;
        this.validateData(newName, "ctValueLinear", notNumber, intNumber);
      }, 1000),
      deep: true,
      immediate: true,
    },
  },
  methods: {
    //表单修改提交后端
    postForm(param, name) {
      param["itemsId"] = this.form.itemsId;
      this.$emit("loadingchange", true);
      if (!this[name].loading) {
        this[name].loading = true;
        postInfo(param, this[name].action).then((res) => {
          if (res.code == 200) {
            this.$set(this.form, name, res.data);
          }

          this[name].flag = false;
          this[name].loading = false;
          this.$emit("loadingchange", false);
        }).catch(() => {
          this[name].flag = false;
          this[name].loading = false;
          this.$emit("loadingchange", false);
        });
      }
    },
    //数据验证
    validateData(newName, myName, notNumber = [], intNumber = []) {
      let regNumber = /^-?\d*(.(\d+))?$/; //小数验证正则
      let regRepNumber = /[^-?\d.,]/g; //将除小数外的符号消除正则
      let regInt = /^\d*$/; //整数验证正则
      let regRepInt = /[^-?\d,]/g; //将除小数外的符号消除正则
      let reg, regRep;
      let repStr = "";
      let flag = true; //是否改变this[myName].flag标识
      if (JSON.stringify(newName) != "{}") {
        //遍历该对象所有字段进行验证
        for (let keys in newName) {
          reg = intNumber.indexOf(keys) != -1 ? regInt : regNumber;
          regRep = intNumber.indexOf(keys) != -1 ? regRepInt : regRepNumber;
          //数字验证环节
          if (newName[keys] && notNumber.indexOf(keys) == -1) {
            let bool = reg.test(newName[keys]);
            if (!bool) {
              repStr = newName[keys] + "";
              repStr = repStr.replace(regRep, "");
              newName[keys] = repStr;
              if (this[myName].flag) {
                this[myName].flag = false; //如果数字验证不通过不需要请求后端
                if (repStr != newName[keys]) {
                  //如果字段未改变则在中过滤一次后端请求
                  flag = false;
                }
              }
            }
          }
        }
        if (this[myName].flag) {
          //是否请求后端判断
          let postBody = {};
          for (let i in newName) {
            if (newName[i] === 0 || (newName[i] && newName[i] != "")) {
              postBody[i] = newName[i];
            }
          }
          if (JSON.stringify(postBody) != "{}") {
            this.postForm(postBody, myName);
          }
        } else if (flag) {
          setTimeout(() => {
            this[myName].flag = true;
          }, 100);
        }
      }
    },
  },
};
</script>

<style lang="scss" scoped>
@import "../content.scss";

.miniFont {
  font-size: 10px;
}
.el-select {
  width: 50px;
}
.miniFontCenter {
  margin-top: 8px;
}

.content13 {
  padding-inline: 0 !important;

  table {
    width: 100%;

    td {
      // max-width: 100px;

      ::v-deep .el-checkbox__label {
        white-space: break-spaces;
      }
    }

    .el-input {
      width: 100% !important;
    }

    .multipleInput {
      .el-input {
        width: 50px !important;
      }
    }
  }

  .innertitle {
    display: block;
    margin-left: 0;
  }

  .table1 {
    .el-radio {
      display: flex;
      align-items: center;
    }
  }

  #hearderTR td:nth-child(7) {
    display: none;
  }
}
.innertitle-sub {
  font-size: 15px;
  font-family: "楷体";
  font-weight: normal;
}
</style>
